﻿@model DateTime?
@{
    //ModelMetadata metadata = ModelMetadata.FromLambdaExpression(m => m, this.ViewData);
}
@*@(Model == null
    ? Html.Telerik().DatePicker()
        .Name(metadata.PropertyName)
        .Min(DateTime.Now)
        .OpenOnFocus(true)
    : Html.Telerik().DatePickerFor(m => m)
        .OpenOnFocus(true)
        //.
)*@
@Html.TextBoxFor(m => m, new { @class = "date-picker" })
@*@if (Model == null)
{
    @(Html.Telerik().DatePicker()
        .Name(metadata.PropertyName)
        .Min(DateTime.Now)
        .OpenOnFocus(true)
    )
}
else
{
    @(Html.Telerik().DatePickerFor(m => m)
        .OpenOnFocus(true)
    )
}*@